package com.person.mall.service;

import com.github.pagehelper.PageInfo;
import com.person.mall.form.ShippingForm;
import com.person.mall.pojo.Shipping;
import com.person.mall.vo.ResponseVo;

import java.util.Map;

/**
 * @author 最酷的桃儿wjc
 * * @date 2022/5/23
 */
public interface IShippingService {

    /**
     * 添加收货地址
     * @param shippingForm
     * @return
     */
    ResponseVo<Map<String,Integer>> addShipping(Integer uid, ShippingForm shippingForm);

    ResponseVo delShipping(Integer uid,Integer shippingId);

    ResponseVo updateShipping(Integer uid,Integer shippingId,ShippingForm shippingForm);

    ResponseVo<PageInfo> shippingList(Integer uid,Integer pageNum,Integer pageSize);
}
